import * as _ from 'lodash-es'
import { defineStore } from 'pinia'
export const useWorkSpaceStore = defineStore('workSpace', () => {
  const componentList = ref([
    {
      name: '待办事项',
      type: 'ToDoLists',
      id: _.uniqueId(),
      styleConfig: {
        width: '100%',
        height: '',
        borderRadius: '',
        marginTop: '',
        marginBottom: '',
        marginLeft: '',
        marginRight: ''
      }
    },
    {
      name: '消息通知',
      type: 'MsgNotice',
      id: _.uniqueId(),
      styleConfig: {
        width: '100%',
        height: '',
        borderRadius: '',
        marginTop: '',
        marginBottom: '',
        marginLeft: '',
        marginRight: ''
      }
    },
    {
      name: '快捷操作',
      type: 'QuickOperate',
      id: _.uniqueId(),
      styleConfig: {
        width: '100%',
        height: '',
        borderRadius: '',
        marginTop: '',
        marginBottom: '',
        marginLeft: '',
        marginRight: ''
      }
    }
  ])
  const list = ref([])
  return { componentList,list }
})